package cn.bdqn.fragment03;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v7.view.menu.ShowableListMenu;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;


public class ContentFragment extends Fragment {
private TextView tvContent;
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {


        View view= inflater.inflate(R.layout.fragment_content, container, false);
        tvContent=view.findViewById(R.id.tv_content);
        return view;

    }

    public void showMsg(String msg){
        tvContent.setText(msg);
    }
}
